//
//  UILabel+label.m
//
//  Created by zhuchenglong on 16/1/20.
//  Copyright © 2016年 zify. All rights reserved.
//

#import "UILabel+label.h"

@implementation UILabel (label)

+ (UILabel *)labelWithFrame:(CGRect)frame text:(NSString *)text font:(UIFont*)font backgroundColor:(UIColor *)backgroundColor
{
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.text = text;
    label.textAlignment = NSTextAlignmentCenter;
    label.textColor = [UIColor whiteColor];
    label.font = font;
    label.backgroundColor = backgroundColor;
    return label;
}

@end
